package com.chen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * @author chen
 * @date 2022/5/5 11:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("report")
@ApiModel(value = "举报", description = "")
public class Report implements Serializable {

    @ApiModelProperty("主键id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private String author;

    private String due;


    private String detail;

    private Date time;

    @TableField(value = "article_id")
    private int articleId;

    @TableField(value = "article_name")
    private String articleName;

    @TableField(exist = false)
    private List<Report> children;

    @TableField(exist = false)
    private Set<Report> enable;

}
